package com.sfc.repo;

import com.sfc.entity.UserEntity;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by heylear.cai on 2016/3/11.
 */
public interface UserRepository extends BaseRepository<UserEntity, Long> {

    @Query("select u from UserEntity u where u.isDelete = 0 and u.username = ?1")
    UserEntity findUserByUsername(String username);
}
